package com.shiku.im.security.service.Impl;

import com.shiku.common.model.PageResult;
import com.shiku.im.security.entity.LineConfig;
import com.shiku.im.security.service.LineConfigManager;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author xie yuan yang
 * @Date 2020/3/6
 **/
@Service
public class LineConfigManagerImpl implements LineConfigManager {

    @Autowired
    private com.shiku.im.security.dao.LineConfigDao lineConfigDao;

    @Override
    public LineConfig sava(LineConfig securityRole) {
        return lineConfigDao.sava(securityRole);
    }

    @Override
    public PageResult<LineConfig> queryLineConfigList(int parseInt, Integer pageSize) {
        return lineConfigDao.queryLineConfigList(parseInt,pageSize);
    }

    @Override
    public void deleteLineConfig(ObjectId objectId) {
        lineConfigDao.deleteLineConfig(objectId);
    }


}
